#import "CDKMarketv1AdminproductproductlistModel.h"

@interface CDKMarketv1AdminproductproductlistModel ()

@property (nonatomic, strong) NSMutableDictionary *param;

@end

@implementation CDKMarketv1AdminproductproductlistModel

- (instancetype)initWithParam:(NSMutableDictionary *)param {      

      self = [super init];      

      if (self) { 
          self.param = [NSMutableDictionary dictionaryWithDictionary:param]; 
          self.isAutoShowLoading = YES; 
          self.isAutoShowBusinessErrorToast = YES; 
          self.parseCls = [CDKMarketv1AdminproductproductlistItem class]; 
      } 
      return self;
}      

- (NSString *)requestUrl { 
      return KMarketv1AdminproductproductlistAddress; 
}

- (YTKRequestMethod)requestMethod { 
      return YTKRequestMethodPOST;
}

- (id)requestArgument { 
      return self.param; 
}

- (void)handleDataToMarketv1Adminproductproductlist {

    NSMutableDictionary *params = [NSMutableDictionary new];
    params[@"position"] = @"展示位置:1-优选借款，2-热门推荐，3-贷款超市 (可扩展，对应不同的位置)";
    params[@"classification"] = @"款超市配置属性：分类:1-极速贷款,2-新口子,3-芝麻分借,4-大额信贷, 5-放款快,6-通过率高,7-利息低";
    params[@"upperQuota"] = @"最高额度";
    params[@"lowerQuota"] = @"最低额度";
    params[@"pageSize"] = @"分页数量，大于30或者小于0将归为20";
    params[@"pageNum"] = @"起始页码，第一页传0";

    [[[CDKMarketv1AdminproductproductlistModel alloc] initWithParam:params] startWithCompletionBlockWithSuccess:^(__kindof CDKMarketv1AdminproductproductlistItem *item) {

        NSLog(@"%@",item);

    } failure:^(__kindof NSError *error) {

    }];
}


@end